package model.path;

import java.util.Collection;
import java.util.Stack;

public class PathConstraint 
{
	private PathStopPoint beginPoint;
	private PathStopPoint endPoint;
	
	public Stack<PathStopPoint> stopPoints;
	
	public PathConstraint()
	{
		this.stopPoints = new Stack<PathStopPoint>();
	}
	
	public void addStopPoints(Collection<PathStopPoint> stack)
	{
		this.stopPoints.addAll(stack);
	}
	
	public void clearCheckpoints() {
		stopPoints.clear();
	}
	public int checkpointsCount()
	{
		return this.stopPoints.size();
	}

	public PathStopPoint getBeginPoint() {
		return beginPoint;
	}

	public void setBeginPoint(PathStopPoint beginPoint) {
		this.beginPoint = beginPoint;
	}

	public PathStopPoint getEndPoint() {
		return endPoint;
	}

	public void setEndPoint(PathStopPoint endPoint) {
		this.endPoint = endPoint;
	}

	public void addStopPoint(PathStopPoint stopPoint) {
		// TODO Auto-generated method stub
		this.stopPoints.add(stopPoint);
	}
}
